var vm = new Vue({
    el: "#app",
    data: {
        arr: [],
        iptvalue: ""
    },
    methods: {
        add() {
            this.arr.push(
                { id: this.arr.length + 1, count: this.iptvalue, statu: false }
            );
            this.iptvalue = "";
        },
        check(item) {
            item.statu = !item.statu;
        },
        del(index) {
            this.arr.splice(index, 1);
        }
    },
    computed: {
        unFinsh() {
            var arr = this.arr.filter((item) => {
                return item.statu == false
            })
            return arr.length
        }
    }
})